package com.example.mybatisplus.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author zzy
 * @since 2024-06-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="AdjustDormitory对象", description="")
public class AdjustDormitory extends Model<AdjustDormitory> {

    private static final long serialVersionUID = 1L;

            @ApiModelProperty(value = "住宿调整ID")
    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

            @ApiModelProperty(value = "调入房间")
    private Long inRoom;

            @ApiModelProperty(value = "调出房间")
    private Long outRoom;

            @ApiModelProperty(value = "逻辑删除")
            @TableLogic
    private Integer isDeleted;

            @ApiModelProperty(value = "修改时间")
    private LocalDateTime modifiedTime;

            @ApiModelProperty(value = "创建时间")
    private LocalDateTime createdTime;

            @ApiModelProperty(value = "申请状态")
    private String state;
            @ApiModelProperty(value = "转入楼栋")
            private Long inBuilding;
            @ApiModelProperty(value = "申请学生ID")
            private Long student;
            private Long leader;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
